package basic;

import java.util.Scanner;

public class Zuotian1 {
	public static void main(String[] args) {
		int s,t;
		double a,b,c,d,e,f,g;
		Scanner in=new Scanner(System.in);
		System.out.println("请输入工资：");
		s=in.nextInt();
		t=s-3500;
		a=t*0.03;
		b=t*0.1-105;
		c=t*0.2-555;
		d=t*0.25-1005;
		e=t*0.3-2755;
		f=t*0.35-5505;
		g=t*0.45-13505;
		if(t>10000){
		   switch(t/10000){
		   case 1:
				System.out.println("个人所得税为："+d);
		   case 2:
		   break;
		   case 3:{if(t<=35000)
			            System.out.println("个人所得税为："+d);
		           else System.out.println("个人所得税为："+e);}
		   break;
		   case 4:System.out.println("个人所得税为："+e);
		   break;
		   case 5:{if(t<=55000)
			           System.out.println("个人所得税为："+e);
		           else System.out.println("个人所得税为："+f);}
		   break;
		   case 6:System.out.println("个人所得税为："+f);
		   case 7:
		   case 8:
		   break;
		   default:System.out.println("个人所得税为："+g);}}
		 else{
			 switch(t/1000){
			 case 0:System.out.println("个人所得税为："+a);
			 break;
			 case 1:{if(t<=1500)
				        System.out.println("个人所得税为："+a);
			            System.out.println("个人所得税为："+b);}
			 break;
			 case 2:System.out.println("个人所得税为："+b);
			 case 3:
				 break;
			 case 4:{if(t<=4500)
				       System.out.println("个人所得税为："+b);
			           System.out.println("个人所得税为："+c);}
			 break;
			 case 5:System.out.println("个人所得税为："+c);
			 case 6:
			 case 7:
			 case 8:
			 break;
			 case 9:{if(t>9000)
				     System.out.println("个人所得税为："+d);
			         System.out.println("个人所得税为："+c);}
			 break;
			 default:System.out.println("个人所得税为："+d);}}
	    }	
		
	}

